
package cn.edu.scau.cmi.chenzehan.springFrame.bean;

import java.io.Serializable;

public class Student implements Serializable{
	
	private int id;
	private String name;
	private String gender;
	private Teacher teacher;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public Student(int id, String name, String gender, Teacher teacher) {
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.teacher = teacher;
	}
	public Student(int id, String name, String gender) {
		super();
		this.id = id;
		this.name = name;
		this.gender = gender;
	}
	public Student() {
		
	}
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", gender=" + gender + ", teacher=" + teacher + "]";
	}
	

}
